package com.meizi.mall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.meizi.mall.product.entity.AttrEntity;
import com.meizi.mall.product.vo.AttrVo;
import com.meizi.core.tool.api.PageUtils;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author meizi
 * @email enjoymeizi@gmail.com
 * @date 2021-01-06 13:26:58
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryPage(Map<String, Object> params, String attrType, Long categoryId);

    AttrVo getAttrInfo(Long attrId);

    void updateVo(AttrVo attr);

    List<AttrEntity> getRelationAttr(Long attrGroupId);

    List<Long> selectCanSearchIds(List<Long> spuAttrIds);

}

